package com.sharemarking.application.common.entity;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.springframework.format.annotation.DateTimeFormat;

import com.sharemarking.application.common.BaseEntity;

@Entity
@Table(name="sys_fab")
public class Fab extends BaseEntity {
	
	@DateTimeFormat(pattern="yyyy-mm-dd")
	private Date time;
	private String employees;
	private String state;
	private Integer times;
	
	@ManyToOne
	@JoinColumn(name="shareId")
	private Share share;
	
	@ManyToOne
	@JoinColumn(name="employeeId")
	private Employee employee;
	
	
	public Date getTime() {
		return time;
	}
	public void setTime(Date time) {
		this.time = time;
	}
	public String getEmployees() {
		return employees;
	}
	public void setEmployees(String employees) {
		this.employees = employees;
	}
	public Share getShare() {
		return share;
	}
	public void setShare(Share share) {
		this.share = share;
	}
	public String getState() {
		return state;
	}
	public void setState(String state) {
		this.state = state;
	}
	public Employee getEmployee() {
		return employee;
	}
	public void setEmployee(Employee employee) {
		this.employee = employee;
	}
	public Integer getTimes() {
		return times;
	}
	public void setTimes(Integer times) {
		this.times = times;
	}
	
	 	
}
